import java.util.Arrays;

public class Test {
    public static void main(String[] args) {
        int[][] arr = {{1,2,3},{4,5,6}} ;
        System.out.println(Arrays.deepToString(arr));
        int[][] arr2 = new int[2] [] ;
        arr2[0] = new int[] {1,2,3};
        arr2[1] = new int[] {1,2,3,4,5,6} ;
    }

    public static void main2(String[] args) {
        hanoi(3 , 'A' ,'B' ,'C');
    }

    public static void move(char pos1 , char pos2){
        System.out.print(pos1 + "->" + pos2 + " ");
    }
    public static void hanoi(int n , char pos1 , char pos2 , char pos3){
        if(n == 1 ){
            move(pos1 , pos3) ;
        }else{
              hanoi(n -1 , pos1 , pos3 ,pos2) ;
              move(pos1 ,pos3) ;
              hanoi(n -1 , pos2 , pos1 ,pos3) ;
        }
    }
}
